.wrapper {
  width: 100%;
  height: 100vmax;
  background-color: #171f27;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column wrap;
  --target-border-color: rgb(92, 102, 112);
  --box-border-color: hsl(210deg 7.09% 50.2%);
  --box-bg-color: hsl(210deg, 15%, 20%);
  --repeat-linear: repeating-linear-gradient(45deg, rgba(184, 204, 224, 0.06) 0px, rgba(184, 204, 224, 0.06) 10px, rgba(184, 204, 224, 0) 10px, rgba(184, 204, 224, 0) 20px);
}
#controllerTitle {
  text-align: center;
  color: #FFF;
  margin: 12px;
  font-size: 15px;
  font-weight: bold;
}
#controller {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
#btn {
  font-size: 12Px;
  color: #aeb0b3;
  text-align: center;
  padding: 6px 6px;
  margin: 0 4px;
  border-bottom: 2px solid #aeb0b3;
  transition: 0.4s;
  &.active {
    color: #FFF;
    border-bottom: 2px solid #f2d662;
  }
}

// xxxx

.container {
  width: 100%;
  padding: 16px;
  margin-bottom: 16px;
  perspective: 1000px;
  perspective-origin: 100% -100%;
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
}

#playground {
  width: 300px;
  margin: 70px auto 50px;
  height: 300px;
  transform-style: preserve-3d;
  background: var(--repeat-linear);
}

.target {
  width: 300px;
  height: 300px;
  border-radius: 4px;
  padding: 2px;
  box-sizing: border-box;
  position: absolute;
  transform-style: preserve-3d;
  border: 1px solid var(--target-border-color);
  transition: all 0.5s;
  display: grid;
  grid-template-columns: 100px 100px;
  color: #FFF;
  font-size: 20px;
  gap: 2px;
  

  &.active {
    transform: translateX(-30px) scaleX(0.85) translateZ(30px) skewY(18deg);
  }
}
.out_box {
  box-sizing: border-box;
  border: 3px solid transparent;

  &:nth-child(1),&:nth-child(2){
  border-top: none;
  }
  &:nth-child(3),&:nth-child(4) {
    border-bottom: none;
  }
}
.box {
  width: 100%;
  height: 100%;
  background-color: var(--box-bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--target-border-color);
  box-sizing: border-box;
  border-radius: 4px;
  transition: all 0.5s;
  padding: 10px 16px;
}
.out_line {
  position: relative;
  padding: 0 10px;
  box-sizing: border-box;
  border-left: 2px dashed var(--target-border-color);
  border-right: 2px dashed var(--target-border-color);
  margin-top: -2em;
  background-color: #171f27;
}
.out_line::after {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 2px dashed var(--target-border-color);
  display: flex;
  justify-content: center;
  align-items: center;  
}
.out_line:nth-child(1)::after {
  content: 'c1';
}
.out_line:nth-child(2)::after {
  content: 'c2';
}

.center_line {
  width: 100%;
  position: absolute;
  border-top: 2px dashed var(--target-border-color);
  top: calc(50% - 1px);
}
//

#over.target {
  z-index: 2;
  border: 1px solid transparent;
}
#under.target {
  z-index: 1;
  &.active {
    transform: scaleX(0.85) translateX(30px) translateZ(-30px) skewY(18deg);
  }
}

.margin {
  margin: 10px 0;
}